/**
 * 
 */
package com.orange.handler.expert.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.expert.AuthGroupService;
import com.orange.modules.dao.AuthGroupRepository;
import com.orange.modules.entity.expert.AuthGroup;

/**
 * @author gaogs
 *
 * 2016-12-1
 */
@Service
public class AuthGroupServiceImpl implements AuthGroupService {

	@Autowired
	private AuthGroupRepository authGroupRepository;
	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthGroupService#saveAuthExportGroupInfo(com.orange.modules.entity.expert.AuthGroup)
	 */
	@Override
	public void saveAuthExportGroupInfo(AuthGroup a) {
		authGroupRepository.saveAuthExportGroupInfo(a);
	}
	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthGroupService#queryAuthGroupInfoById(java.lang.String)
	 */
	@Override
	public AuthGroup queryAuthGroupInfoById(String pid) {
		AuthGroup a =authGroupRepository.queryAuthGroupInfoById(pid);
		return a;
	}
	@Override
	public AuthGroup queryAuthGroupBySchoolId(String schoolId)
			throws SQLException {
		AuthGroup ag = authGroupRepository.queryAuthGroupBySchoolId(schoolId);
		return ag;
	}

}
